when to use whether and if